package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Id;

/**
 * 订单对象 tb_product_order
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class TbProductOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String buyerName;

    /** 地址 */
    @Excel(name = "地址")
    private String buyerAddress;

    /** 电话 */
    @Excel(name = "电话")
    private String buyerPhone;

    /** 国家 */
    @Excel(name = "国家")
    private String buyerContry;

    /** 交易ID */
    @Excel(name = "交易ID")
    private String tradeId;

    /** 状态：0-待确认、1-待交付、2-已发货、3-已完成 */
    @Excel(name = "状态：0-待确认、1-待交付、2-已发货、3-已完成")
    private Long status;

    /** 总报价 */
    @Excel(name = "总报价")
    private BigDecimal sumPrice;

    private Long createUserId;

    private String templateId;

    @Excel(name = "用户昵称")
    private String userNickName;
    @Excel(name = "社交APP")
    private String socialApp;
    @Excel(name = "付款单号")
    private String paymentNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date confirmTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getBuyerName() {
        return buyerName;
    }

    public void setBuyerName(String buyerName) {
        this.buyerName = buyerName;
    }

    public String getBuyerAddress() {
        return buyerAddress;
    }

    public void setBuyerAddress(String buyerAddress) {
        this.buyerAddress = buyerAddress;
    }

    public String getBuyerPhone() {
        return buyerPhone;
    }

    public void setBuyerPhone(String buyerPhone) {
        this.buyerPhone = buyerPhone;
    }

    public String getBuyerContry() {
        return buyerContry;
    }

    public void setBuyerContry(String buyerContry) {
        this.buyerContry = buyerContry;
    }

    public String getTradeId() {
        return tradeId;
    }

    public void setTradeId(String tradeId) {
        this.tradeId = tradeId;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public BigDecimal getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(BigDecimal sumPrice) {
        this.sumPrice = sumPrice;
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }


    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }


    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public String getSocialApp() {
        return socialApp;
    }

    public void setSocialApp(String socialApp) {
        this.socialApp = socialApp;
    }

    public String getPaymentNo() {
        return paymentNo;
    }

    public void setPaymentNo(String paymentNo) {
        this.paymentNo = paymentNo;
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    @Override
    public String toString() {
        return "TbProductOrder{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", buyerName='" + buyerName + '\'' +
                ", buyerAddress='" + buyerAddress + '\'' +
                ", buyerPhone='" + buyerPhone + '\'' +
                ", buyerContry='" + buyerContry + '\'' +
                ", tradeId='" + tradeId + '\'' +
                ", status=" + status +
                ", sumPrice=" + sumPrice +
                '}';
    }
}
